<span id="${uuid}" style="display: none"></span>

<div data-id="content" class="box_tc_s">
    <form data-id="form-message-add-info" method="post"
          action="${pageContext.request.contextPath}/app/api/message/addMessage"
          name="form-task-add">
        <table border="0" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg">
                <td class="hydra-left"><span class="nes-tip">*</span>消息标题：</td>
                <td class="hydra-right"><input type="text" data-id="sendTitle"
                                               name="sendTitle" class="easyui-validatebox hydra-input-width"
                                               data-options="required:true,validType:['normalChar','length[0,20]']"
                                               placeholder="消息标题.." value=""/></td>
            </tr>
            <tr>
                <td class="hydra-left">消息接收人：</td>
                <td class="hydra-right">
                    <div style="line-height: 150%">不选则接收人将发送给全体用户</div>
                    <a href="javascript:void(0)" data-id="chooseUser"
                       iconCls="fa fa-plus">选择用户</a>
                    <div data-id="selected" class="tool-box message-user-box" style="display:none"></div>
                    <input name="userIds" type="hidden" data-id="userIds"/>
                </td>
            </tr>
            <shiro:hasPermission name="message:post:manage">
                <tr>
                    <td class="hydra-left width90"><span class="nes-tip">*</span>作为系统消息发布：</td>
                    <input type="radio" name="resourceType" data-id="button"
                           value="menu" checked>私信<input type="radio"
                                                         name="resourceType" value="button">系统消息
                </tr>
            </shiro:hasPermission>
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90"><span class="nes-tip">*</span>消息内容：</td>
                <td class="hydra-right"><textarea
                        data-id="sendContent" name="sendContent"
                        class="easyui-validatebox hydra-textarea hydra-input-width" draggable="false"
                        data-options="required:true,validType:['normalChar','length[0,300]']"
                        placeholder="消息内容.."></textarea>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    seajs.use(["apps/message/main"], function(page){
        page.add("${pageContext.request.contextPath}", "${uuid}", {
            userId:"${replyUser.id}",
            userNumber:"${replyUser.userNumber}",
            userName:"${replyUser.userName}"
        })
    });

</script>
